<%@page import="java.net.URLDecoder"%>
<%@page import="sdfi.lee.DAO.QuestionDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
	div{
		float:left;
		font-family:"华文中宋";
		font-size:14px;
		margin:5px 5px 5px 0px;
		border-bottom:1px dotted #CCCCCC;
		padding:5px 10px;
	}
	div span{
		cursor:pointer;
	}
	legend{
		font-family:"华文中宋";
		font-size:16px;
		
		
	}
	
</style>
<script type="text/javascript" src="../js/jquery-1.6.js" ></script>
<script type="text/javascript" >
	$(function(){
			$("div span").live("click",function(){
				if($(this).text()=="不详")return false;
				window.open("readsource.jsp?path="+encodeURI($(this).attr("value")));
				}).live("mousemove",function(e){
						if($(this).text()=="不详") return false;
						var x=e.pageX;
						var y=e.pageY;
						if(x>200) x=x-200;
						if(y>350) {
							var d=$(this).parent("div:first").height();
							y=y-d-20;
						}
						
							var id=$(this).attr("id");
						var nename=$(this).text();
		$("#show").text("正在加载...");
			$("#show").load("../GetRelationText",{id:id,nename:encodeURI(nename)},function(){
				
			});
						$("#show").css("top",y).css("left",x).show();
					}).live("mouseout",function(){
						$("#show").hide();
						});
		});
</script>
<title></title>
</head>
<body>

	<%
	
	String documentid=request.getParameter("path");
	String nename=request.getParameter("nename");
	
	
	
	String body=new QuestionDAO().getRelation(documentid,nename);

	out.println(body);
	%>
    <div id="show" style="border:1px solid #333;position:absolute;display:none;width:200px;background-color:#fff;">
    	
    </div>
</body>
</html>